import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getModelPageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsModel/getPageList`,
    method: 'post',
    data
  })
}
export const deleteModelBatch = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsModel/deleteBatch`,
    method: 'post',
    data
  })
}

export const changeModelStatus = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsModel/changeStatus`,
    method: 'get',
    params
  })
}

export const addOrUpdateModel = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsModel/addOrUpdate`,
    method: 'post',
    data
  })
}

export const modelDetail = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaAssetsModel/detail`,
    method: 'post',
    params
  })
}

